package com.xuecheng.media.feignclient.content;

import com.xuecheng.content.model.dto.QueryCourseDetailDto;
import com.xuecheng.content.model.po.CourseBase;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="content-api",path="/content",contextId="courseBase",
fallbackFactory=CourseBaseInfoClientFactory.class)
@RequestMapping("/course")
public interface CourseBaseInfoClient {
    @PostMapping("/detail")
    CourseBase getCourseBase(@RequestBody QueryCourseDetailDto dto);
}
